package com.jarvis.zeng.design.pattern.decorator.promotion;

import lombok.Data;

/**
 * 促销类型
 */
@Data
public class SupportPromotions implements Cloneable {

    /** 该商品的促销 id */
    private int id;

    /** 促销类型 1\优惠券 2\红包 */
    private PromotionType promotionType;

    /** 优先级 */
    private int priority;

    /** 用户领取该商品的优惠券 */
    private UserCoupon userCoupon;

    /** 用户领取该商品的红包 */
    private UserRedPacket userRedPacket;

    @Override
    protected SupportPromotions clone() {
        SupportPromotions supportPromotions = null;
        try{
            supportPromotions = (SupportPromotions)super.clone();
        }catch(CloneNotSupportedException e){
            e.printStackTrace();
        }
        return supportPromotions;
    }
}
